package com.ship.mapper;

import com.ship.dto.AccountDto;
import com.ship.model.Account;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author Lucky Boy
* @description 针对表【account】的数据库操作Mapper
* @createDate 2024-07-01 11:52:58
* @Entity com.ship.model.Account
*/
@Mapper
public interface AccountMapper {
    List<Account> selectAll();

    int selectHasAccountByUsername(String username);

    Account selectAccountByLogin(AccountDto accountDto);

    int updateAccountImgUtl(Long accountId, String imgUrl);

    int updateAccountStatus(Long id, Integer status);

    int updateRestAccountPwd(Long id, String newPwd);

    int insertAccount(String username, String defaultPwd);

    int deleteById(Long id);

    String selectPwdById(Long id);
}
